package com.ziyueyuwen.xiniao.bean.query;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author wancheng  on 2019/1/7.
 */
public class PageQuery {
    @NotNull(message = "页数不能为空")
    @Min(value = 1,message = "最小值为1")
    private Integer page = 1;
    @NotNull(message = "行数不能为空")
    @Min(value = 1,message = "最小值为1")
    private Integer rows = 10;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }
}
